package com.ihr360.excel.vo;

import org.apache.commons.lang.StringUtils;

import java.io.Serializable;

public class StaffUniqueVo implements Serializable {

    private String companyId;

    private String staffName;

    private String mobileNo;

    private String staffId;

    public String getStaffName() {
        return staffName;
    }

    public void setStaffName(String staffName) {
        this.staffName = staffName;
    }

    public String getMobileNo() {
        return mobileNo;
    }

    public void setMobileNo(String mobileNo) {
        this.mobileNo = mobileNo;
    }

    public String getStaffId() {
        return staffId;
    }

    public void setStaffId(String staffId) {
        this.staffId = staffId;
    }

    public String getCompanyId() {
        return companyId;
    }

    public void setCompanyId(String companyId) {
        this.companyId = companyId;
    }

    public boolean hasUniqueInfo() {
        return StringUtils.isNotEmpty(staffName)
                && StringUtils.isNotEmpty(mobileNo)
                && StringUtils.isNotEmpty(companyId);
    }

    public String getUniqueKey() {
        return staffName + mobileNo;
    }
}
